/**
 * Notes: 会场实体
 * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat)
 * Date: 2022-06-23 19:20:00 
 */

const BaseProjectModel = require('./base_project_model.js');

class RoomModel extends BaseProjectModel {

}

// 集合名
RoomModel.CL = BaseProjectModel.C('room');

RoomModel.DB_STRUCTURE = {
	_pid: 'string|true',
	ROOM_ID: 'string|true',
	ROOM_TITLE: 'string|true|comment=标题',
	ROOM_STATUS: 'int|true|default=1|comment=状态 0=未启用,1=使用中',
	// ROOM_CATE_ID: 'string|true|default=0|comment=分类',
	// ROOM_CATE_NAME: 'string|false|comment=分类冗余',
	ROOM_SEAT_CNT: 'int|true|default=20|comment=座位数 0=不限',
	ROOM_SEAT_LIST: 'array|true|default=[]',
	ROOM_ACTIVITY_LIST: 'array|true|default=[]',
	ROOM_ORDER: 'int|true|default=9999',
	ROOM_FORMS: 'array|true|default=[]',
	ROOM_OBJ: 'object|true|default={}',
	ROOM_ADDRESS: 'string|false|comment=详细地址',
	ROOM_ADDRESS_GEO: 'object|false|comment=详细地址坐标参数',
	ROOM_QR: 'string|false',
	ROOM_ADD_TIME: 'int|true',
	ROOM_EDIT_TIME: 'int|true',
	ROOM_ADD_IP: 'string|false',
	ROOM_EDIT_IP: 'string|false',
};

// 字段前缀
RoomModel.FIELD_PREFIX = "ROOM_";

/**
 * 状态 0=未启用,1=使用中 
 */
RoomModel.STATUS = {
	UNUSE: 0,
	COMM: 1
};
module.exports = RoomModel;